package com.tripler.eurekademoservice.controller;

import com.sun.istack.internal.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @title: HelloController
 * @projectName: eureka-demo-service
 * @description: TODO
 * @author: Zoran
 * @dateTime: 2019/7/17 21:52
 */
@RestController
public class HelloController {

    private final Logger logger = Logger.getLogger(getClass());

    @Autowired
    private DiscoveryClient client;

    @GetMapping("/hello")
    public String index() {

        return "Hello World";
    }
}
